If a user picks a file, use parent folder path

Closes #254