Added user id check, so the script does not run as root, added current directory check