rename from ps1 to psm1

Rework default directory logic.