Added support to run instead of open files 

This is done if the executable bit is set (e.g. via chmod +x)