Set PATH in the proper order in lifecycle scripts

Fix #3063