Extracted binary path detection to external script

- modifications in mom scripts
New scratch resources
Scratch scheduling improvements