ticket:697 - create target directory before copying files (fix for RPM building)
ticket:747 - Fix unary minus parsing