Disallow imports of parent folder.

@devoncarew 

This fixes an infinite folder creation on importing a parent folder into the project.
Yes that is exactly what i suggest. Will update the PR with the change.