work properly with non-root spree engine mounted configurations

a little crude maybe but it makes the uploads and preview buttons work when spree isn't mounted to the root