On my laptop I had a really strange bug where SCRIPT_DIR was now set to the SCRIPT_NAME
It tried to delete all my laptop :(