Added better way to get full path to init script