Make compile.rb OS independent (was working on Windows only).

Signed-off-by: Krum Bakalsky <krum.bakalsky@sap.com>