Finally fixed path generation bug; It's caused by a ruby bug in SimpleDelegator