Implemented error upon trying to awk a directory