Handling the case where user enters a data folder path containing a tilde