if directory is passed, recursively goes through all php files