test for regular file, not executable (https://github.com/wanelo/boundary_scripts/commit/9c72c0d056d7906eaf7d457e1e177be7fe3db1d8)