added in a precommit hook that removes the old scripts
added functions that list only directories and only files