Refactor source installation for mac & linux

NOTE: Package installation is broken on rhel system due to outdated Ant
package in repositories