fixed conditional checks for composer on compile script