[bash] Check if passed argument is file or directory in Bash