Make generate_user_files.py work for other directories

Use os.path.abspath(__file__) instead of os.path.abspath(sys.argv[0])

Change-Id: I3172c29352f9e7bddc8de173e6057fd9172e167a
Merge "Make generate_user_files.py work for other directories"