Fix #1 and add raw_version variable to build environment