Script takes a path to a file or a directory