init cmd: test for file instead of directory