Use argparse

Switch to print only the filename