fix name of nightly distribution
fix issue with relative path in PATH variables
fix bash support on os x