fix test for executable
Always work with a full-path filename