Fix deployment bugs, change some gems in order to make it run on my freeBSD