am-project: Display an error when trying to add a directory as a source