abbreviate filepath to fit into command-line