patched for executing files with -x permission only. now checking if argv is a directory first and used man 2 stat instead of man 2 open.