Fixed excluded files from returning undefined