Added support for custom filetype scripts