Fix deploy directory undef