Fixed BUG: Delete folder

Now in the configuration the application check if the user input is a
folder or a file.