Removing get_file_component directory

Alternative to #160.