Auto substitution a file extention accordingly the dev chunk option