handle .jar and .moarvm file extensions