Include the executable extension in the test rule dependency

This fixes "make test" on platforms that have an executable
extension.