Disallow imports of parent folder.

@devoncarew 

This fixes an infinite folder creation on importing a parent folder into the project.