Keep getting error "usage: dirname path"