PHP loading and compressing asset based on live and dev environment