corrected the shebang. Correct which files lsof is going to verify (the dir option was being ignored)