Private chef

Fixed error in current_dir as well as ensuring urls that are different on hosted/private work for regen_key