fixed get_file_path() function if called with trailing slash