added sub to change // to / as a workaround for rails bug mounting engines