Auto-detect for command line scripts

Various command line scripts are often used to build projects. In this build we added auto detection for .sh, .pl, .cmd and .bat scripts.

Other improvements