Fixed issues with non-interactive login shells executing non-interactive bashrc
Added confirm check before formatting directory to prevent recursively renaming unintended directories