Made --no-dev for composer an optional argument checking the ENV[STAGE] variable equals .dev.